<?php
class indexAction extends frontAction{
	public function execute(){
		$albumID = $this->getGetParam('albumID',0);
		$dao = new DaoImage();
		if($albumID==0){
			list($images,$page) = $dao->getListPage("typeID='".service_type::ALBUM."'",20);
		}else{
			list($images,$page) = $dao->getListPage("typeID='".service_type::ALBUM."' and itemID='$albumID'",20);
		}
//dump($images);
		$currentID = service_menu::getCurrent(service_type::ALBUM,$albumID);
		$cache = new Cache_request();
		$cache->set("currentID",$currentID);

		$this->assign('currentID',$currentID);
		$this->assign('images',$images);
		$this->assign('page',$page);
	}
}
?>
